// replication code //
// main manuscript //

* preparing data for MLM 
xtset cowcode

** table 1 **

* M1
xtlogit RRParty GroupEstimate indexdistinctiveness i.year, re intpoints(50)
estimates store pl1

* M2
xtlogit RRParty GroupEstimate EthnicPerVote i.year, re intpoints(50)
estimates store pl2

* M3
xtlogit RRParty GroupEstimate EthnicRights i.year, re intpoints(50)
estimates store pl3

* M4
xtlogit RRParty GroupEstimate indexdistinctiveness EthnicPerVote EthnicRights i.year, re intpoints(50)
estimates store pl4

* M5
xtlogit RRParty GroupEstimate indexdistinctiveness EthnicPerVote EthnicRights Unemployment ParlRegime MeanDM FedDec v2x_polyarchy CommLegacy i.year, re intpoints(50)
estimates store pl5

* AIC/BIC fit statistic
estimates stats pl1 pl2 pl3 pl4 pl5
